package com.tuju.jetpackfirstdemo.ui.mpchart;

import java.util.List;

public class KLineBean {

    /**
     * RetCode : 10000
     * RetMsg : 成功
     * Message : {"Y":[39,60,70,80,90,100,110,120],"X":["2019-11-01T18:02:56.16","2019-11-02T01:09:29.3571428","2019-11-02T08:16:02.5542856","2019-11-02T15:22:35.7514284","2019-11-02T22:29:08.9485712","2019-11-03T05:35:42.145714","2019-11-03T12:42:15.3428568","2019-11-03T19:48:48.54"],"Products":[{"ProductName":"设备111","ProductCode":"600001","Data":[{"Y":39,"X":"2019-11-01T18:02:56.16"},{"Y":50,"X":"2019-11-01T22:59:15.507"},{"Y":70,"X":"2019-11-01T23:22:21.197"}]},{"ProductName":"测试设备","ProductCode":"600541","Data":[{"Y":100,"X":"2019-11-01T21:47:30.1"},{"Y":100,"X":"2019-11-01T22:16:24.023"},{"Y":100,"X":"2019-11-02T02:08:35.75"},{"Y":100,"X":"2019-11-03T19:48:48.54"}]}]}
     */
    private String RetCode;
    private String RetMsg;
    private KLineaChart Message;

    public String getRetCode() {
        return RetCode;
    }

    public void setRetCode(String RetCode) {
        this.RetCode = RetCode;
    }

    public String getRetMsg() {
        return RetMsg;
    }

    public void setRetMsg(String RetMsg) {
        this.RetMsg = RetMsg;
    }

    public KLineaChart getMessage() {
        return Message;
    }

    public void setMessage(KLineaChart Message) {
        this.Message = Message;
    }

    public static class KLineaChart {
        private List<Float> Y;
        private List<String> X;
        private List<ProductsBean> Products;

        public List<Float> getY() {
            return Y;
        }

        public void setY(List<Float> Y) {
            this.Y = Y;
        }

        public List<String> getX() {
            return X;
        }

        public void setX(List<String> X) {
            this.X = X;
        }

        public List<ProductsBean> getProducts() {
            return Products;
        }

        public void setProducts(List<ProductsBean> Products) {
            this.Products = Products;
        }

        public static class ProductsBean {
            /**
             * ProductName : 设备111
             * ProductCode : 600001
             * Data : [{"Y":39,"X":"2019-11-01T18:02:56.16"},{"Y":50,"X":"2019-11-01T22:59:15.507"},{"Y":70,"X":"2019-11-01T23:22:21.197"}]
             */

            private String ProductName;
            private String ProductCode;
            private List<PointBean> Data;

            public String getProductName() {
                return ProductName;
            }

            public void setProductName(String ProductName) {
                this.ProductName = ProductName;
            }

            public String getProductCode() {
                return ProductCode;
            }

            public void setProductCode(String ProductCode) {
                this.ProductCode = ProductCode;
            }

            public List<PointBean> getData() {
                return Data;
            }

            public void setData(List<PointBean> Data) {
                this.Data = Data;
            }
        }
    }

    public static class PointBean {
        /**
         * Y : 39
         * X : 2019-11-01T18:02:56.16
         */

        private float Y;
        private String X;

        public float getY() {
            return Y;
        }

        public void setY(float Y) {
            this.Y = Y;
        }

        public String getX() {
            return X;
        }

        public void setX(String X) {
            this.X = X;
        }
    }
}
